Revised webpage, added AJAX calls