Make vttjs npm friendly.

Make vtt.js more node and npm friendly.