Upgraded grader.js to work properly, but it still uses two different functions for url and html input cases