fixed most of the jshint syntax errors