Add Cordova options, general cleanup and organization of app.js #7