the editor example is ported to CommonJS