Doing an AJAX query

To let the browser Javascript file testWHS.js get data from the server via an AJAX request, we need to add code in testWHS.js to make the request and code in our server to answer it.