Using faster intersect function

http://stackoverflow.com/questions/1885557/simplest-code-for-array-intersection-in-javascript