js for search bar was not loading correctly. Moved to nav_bar partial and works now