Update & Reformat

Was not working on the latest cordova build. Now it does :).