prevent script from running before video loads