fixed some js linting issues