added phonegap.js code