A JavaScript function for seeing if a provided value is found within a provided array