Wrapper for AJAX requests to hopefully allow for same requests from native mobile app