minor fixes on jqm.js file
cleaned more code