adding back in phonegap.js