Javascript AST to CFG converter