updated thin, updated codemirror, cleaned up ruby and js code, added catch block, added proper indentation, moved js loading to bottom of page, moved jquery to cdn load