Added tests.
Bail if document is not defined.
Added DocumentTitle.rewind.
Distinguish browser tests in output.
Consistency.
Merge pull request #2 from pluma/node-compat

Node compatibility (fixes #1)