A simple wrapper for Ajax requests to avoid using jQuery