Add cordova.js and some tidier init stuff