refactoring, another try to get rid of video player bug. JS from video.html -> video-page.js