WebVTT implementation in JavaScript