Create a Filtered List from an Input Field in JavaScript