New grade.js with url check