Create a solution for the "create JavaScript" closure challenge.
Removed an instance of "indexOf" for checking for an item in an array
that I had slated for updating with a more supported/performant
method.