Working implementation using XHLHttpRequest and httpd servlet in Emacs