js linting / whitespace cleanup