Attempting to use indexOf for items reference