Javascript passes lint.

Removed whitespace and added two missing semicolons.