JavaScript implementation of Set (data structure to store non-repeated values)