Fixed JavaScript error with video