JS style fixes and jshint added