AJAX search creating an error, otherwise homework complete