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

I published this to my local host in a subdirectory and noticed some 404 errors so I made these changes.