Fix for JS error on main bird search