sending client request with xmlhttprequest