correct phonegap.js