Set value of tm1-ui-dbr in Javascript

I ended up calling $tm1Ui.cellPut and setting the value directly in the cube, Cf.:
http://forum.cubewise.com/t/how-to-use-dbs-cellputn-fro-canvas/94/2