added call to phonegap.js