javascript compare two array of strings