JavaScript extend array function, remove matching values from array