Remove closeVideo function out of utils.js