Cleaned up grader.js code