Added some js linting to the code