Self execute and module.export codemirror