The variable event
in your code is not initialized.
http://jsfiddle.net/SeEw2/4/
extract :
$('#ajaxsearch').click(function(event) {
// Stop the Search input reloading the page by preventing its default action
event.preventDefault();