completed edits to grader.js - now handles url input properly