[#7] fixed up some white space
[#7] Tidy up the cordova.js middleware.
[#7] Fix failing cordova spec.
[#7] Tighten the test formatting.
[#7] Fix whitespace.