[javascript] Getting a union of two arrays in JavaScript