updated grade.js to take url