Added AJAX to main page