implemented $/repr for enums for the JS target