javascript check if option exists in select