A small piece of JS to search through a list