refactoring, updated to jqm 1.4.1