Issue #1: [Cleanup] errors detected by JSLint in video.js
Issue #3: correct wrong design and cleaning