Fixed issue where comments break pagination. Closes #9

The issue was due to comments not being parsed as a DOM node, so they
always get returned into the leftover markup, creating an infinite loop