Adapt to auto load mode codemirror

This is to accommodate https://github.com/derbyjs/d-codemirror/pull/2

Additionally, I added styles to make it look more like the Todos example. If this is not needed feel free to only apply the first commit.

Best,