Fix JS lint issues

Some JS lint fixes to confirm with changes to jshint in https://github.com/UWFlow/rmc-linter/pull/1.

Fixes #106 for JS files.