JSHint changes

Mostly missing semi-colons, type coercion comparisons with discrete
values, empty strings, and null, and line break assumptions about
automatic semi-colon insertion.

Also turned off warning 117, due to exported globals. Will shortly set
this up as an export.