Modified getFormatData to support Web Workers for format parsing.

Instead of immediately returning the converted format, a callback
can be called to return the converted document data.