Js Check If String Contains Substring From Array To Hashmap Javascript