grader.js improved to take input as url also