fixed jshint warnings, trailing comma