The main problem is this line:
$('.SearchInput').bind('keydown', function(e) {
if (e.keyCode == 13) {
var search = $(this).find($('input[name=\'search\']').attr('value'));
keydown SearchInput, <input>. , this <input>, keydown. , find() <input> (.. this), <input> , .
:
var search = $(this).attr('value');
, val()
var search = $(this).val();