a port from flash to html5 for ragdoll avalanche