Fixed phonegap build and fixed js errors

- App runs fine on android (devices and emulators)
- Added cordova plugin that allows remote debugging with Chrome