Wrap a plain JS object into an ES6 module.