change to phonegap.js