Misc cleanups, JSHint