handle onload scripts of video popup