now works with cordova 2.5