Fixed linting errors
Fixed javascript test runner