added check in initCarouselVideo function to check for presence of video tag