added call to cordova.define