Fix tag rewriting for videojs