Remove test that prints all HTML
Add parseDocument method that detects page type