add AJAX file generation