added web worker support
Merge pull request #8 from tanx/webworker

Added web worker support