Fixed issue with cordova's AMD