Added a PHP function and basic AJAX.
Restructure AJAX for multiple calls, style changes.