allmost working grader.js