Patching up bugs and remove old jQuery mobile code