... with a send request and handle response function. So to actually use it, you could include this js in your page. Then to make one of these backend requests you would tie it to something. Like an onclick event or a straight href like this: <a href="javascript:sndReq('foo')">[foo]</a> ...