jqm 1.3.1 compatibility fixes