[js] cordova.require instead of PhoneGap.require