add other checks to grader.js
completed grader.js for hw assignment