Update grader.js

Hopefully fixed "undefined" output before URL checks.