A JavaScript library that implements enumerated types