fixing syntax, appeasing JSHint