Move WebVttDocument to separate class.
JShint code.