Updated grader.js to use a temp file for download