fixed bugs. added phonegap.js into git ignore