Added jslinting and fixed most suggestions