Update applicationPreferences.js

Adding cordova 3.0 compatibility