Fix minor javascript style issues, missing semi-colons.

* braces matching style in the other Javascript code
* fix missing semi-colons