A lot of languages compile to javascript, including haskell, but I'd suggest just bite the bullet, and use js directly. You'll save a lot of time and bang your head against a lot less obscure issues.
You can use webgl for 3d graphics, and there are lots of examples on the web.
You can use webgl for 3d graphics, and there are lots of examples on the web.