changed to phonegap.js