Fix some nits.

This is mostly missing semicolons, with a few trailing whitespace removals as well as a couple of fixes to make functions return values consistently. All in the name of making js2-mode happier.