removed contians and put indexOf method to run in chrome