Have any of you used the option to convert to HTML5 canvas or webGL using the built in Command (AnimateCC) to convert a whole game? How painful is it?

Since it would require re-writing all code in JS, I'm thinking I might as well just port to Unity and C#.

Thoughts?