Be more consistent about types

For more details see https://github.com/videojs/videojs-contrib-hls/issues/103
@dmlap I followed your suggestion and added this code for normalizing offset.