transpile class to ES6 counterpart