Minor stylistic cleanups, JSHint compliance