Add video sync javascript