fix syntax typo to pass tough jshint test