JS linter and cleanup