Somewhat working esprima port and tests