Add some code to put in fake DOM for case when run through JavascriptCore
Add some code to put in fake DOM for case when run through JavascriptCore

jessegrosjean/CodeMirror,jessegrosjean/CodeMirror,jessegrosjean/CodeMirror