fixed syntax to please jshint