set intersection in javascript