Flash to HTML5 migration