Verify whether JS AST is valid