A basic set implemented in raw JavaScript