Set of objects per se in JavaScript