fix some bugs add search functionality

fixed error when $("input[list]") returns empty list

fixed "undefined" shown when label is missing

added search functionality so when you start typing it hides all options that don't contain the input value