Implemented a mocking version of the AJAX function to save the functions to file.