Be more consistent about types

For more details see https://github.com/videojs/videojs-contrib-hls/issues/103
no problem! Let me know if there are more places that need to be changed in this PR.