How to create and use Enums in JavaScript