crudely support both ES5 and ES6 in the same transform.js module