write SSJS headless grader