Fix semicolons, breaking, whitespace, duplicate var statements.

Looks like jshint coverage is not hitting tests and they had quite a few issues.