Tweaking transform.js to work with current version of esprima.