Fixed CodeMirror init and jquery post paths so app can work in a directory other than root