JS: Accept parsers with callbacks.

Also, some documentation additions.
Demo, JS: Put the parser in Web Workers.