why not just
```js
window.videojs = window.videojs || {};
window.videojs.hls = window.videojs.hls || {};
```