JSHint and JSLint cleanup pass.