I personally wouldn't do any medium-to-large JavaScript project in anything but Haxe at this point.
> I wonder why it's not more popular?
It's a relatively young language (8 years old, but it's only been mature for a fraction of that). I think it just hasn't reached critical mass yet.