update video popup function js