adding fake phonegap.js