[js] don't prefix enum constructor access with $ (closes #2418)
Merge pull request #2419 from nadako/2418_js_enum_constructor_access

[js] don't prefix enum constructor access with $ (closes #2418)