Instead of monkeying around with the engine code, I wrote a simple wrapper that allows ES6 class syntax. Code here: