Stylistic updates and jshint fixes