Javascript Find If Element Exists In Array Js Slice On String