added html5 video support, fixed animation bugs