Wrap vtt.js in a function expression.

Also export WebVTTParser on the global whether we
are running in node or otherwise. This was suggested
by Dave on bug 895091 to take care of the node,
web page, and browser use cases.