Updated graded.js