Enum simulation

Not ready to discuss modules. That will come once we look into using CommonJS/Browserify/ES6 modules to understand how modules should be defined.