Fix error in event handling to allow for more than one video per page.