A simple enum implementation for JavaScript