syntax corrections per jshint