I am quite new to JavaScript libraries. I wanted to replace my current code with jQuery. My current code looks like this:
var req; function createRequest() {