switched from xmlhttp to jquery