replace jquery stuff with plain vanilla XHR; prove that uploads can work