Tries to fix JQM bugs