added phonegap.js call and removed keyboard hacks