Convert flash to jquery (html5).