cache this var higher up on the chain , e.g. var $search = $('#search');