Replaced debug alerts with logs
Merge branch 'master' of https://github.com/scrollback/phonegap