Update check.js

added checkASTOutput.json code  to write the AST to a file