updating and fixing small bugs in the corpus connection information and the transition from ajax to a cors request for #838