make Javascript work for videos added by autoupdate