Implemented one XHR for all requests and beautified all files