Extended grader.js to handle URLs (still in poor style)