revised grader.js and added new json checks for html elements