I found a section on the nginx docs that you can use
ECMAScript 5.1 (strict mode) with some ECMAScript 6 and later extensions
to extend