Extract out search box js