Update `jsdom` version to `~0.8`

To use in Node.js 0.10.x, update `jsdom` version to `~0.8`.
Also I modified test to adjust sanitised output to `jsdom`'s one.
I think that there was some change in triming whitespace in `jsdom`.