A simple JavaScript set implementation.