added support for http request on the browser

This PR includes:

- branching for the request method, using native XMLHttpRequest