factored each case in ajax_htmldata.php into a separate source file
factored each case in ajax_processing.php into a separate source file