better JS syntax and linting