Fixed typo
Actually generate constants and enums
Add tests for JS enum/const generation