refactor enum as an object that gets frozen (if freeze is supported in browser--not supported in IE8)
comment
refactor test to reflect new object
add test for frozen object
Merge pull request #503 from Trott/enum

refactor enum as an object