Testing the RESTful WCF service with a JavaScript client