Updated grader.js so that exported function behaves like it used to.