Lint JS files and fix reported errors