Updated grader to be more js idiomatic