Added AJAX to index