Javascript: Enums continued