code clean
code cleanup, better indent, global codemirrir-object
updated version