added setTimeouts to account for ios quirks:
* see http://docs.phonegap.com/en/3.4.0/cordova_events_events.md.html#Events