Update & Reformat

Was not working on the latest cordova build. Now it does :).
Merge pull request #7 from botweb/patch-1

Update & Reformat