Added a getRequest method for XHR operations.
Converted get_request to simplified CJS.