fix syntax error reported by jshint