Theoretically, since its made with ActionScript you could port it to JavaScript quite easily.
There's multiple projects floating around on the net where people essentially convert from things like C# or ActionScript, through to TypeScript. From there, they convert it to JavaScript, however the resulting code is quite often not entirely human readable when this is automated.
The result would need quite a bit of clean up.