js linting (reorder `require`s, remove unused variable)