fixed typos in index.js
added phonegap.js to index.html