Removed Array JS object - using indexOf for contains