Fixed the AJAX a bit.