Support ES6 or CJS style of runtime