2nd try, replace ECMA Script 6 function contains() ! with indexOf()