remove unused reference to document so you can use this lib in a worker
Merge pull request #11 from nickdesaulniers/removeDoc

remove unused reference to document so you can use this lib in a worker
Add nickdesaulniers's regex changes back in.
Remove the startswith function as it is no longer necessary.
Remove debug output.
Update README.md
small typo
Merge pull request #15 from nickdesaulniers/readme

small typo
Fix line endings.
Normalize all line endings.