yay javascript enumeration support