First pass for cordova.js