Set data structure for JavaScript (MIT)