Code style fixes; minor clean up

* Fix identation and whitespace.
* Consistent use of quotes.
* Remove unused variables.
* Remove unused dependencies.
* Add copyright banners where missing.
* Use function form of 'use strict'.
* Add missing semi-colons.