Fix some JS linter warnings