Added some quick functions for AJAX requests.