style errors found by jshint (?) fixed