minor jqm fixes and enhance canvas assignment function: added click.