implement js for the embedded video page type