More work on js. Now using esprima!!