Minor refactoring
- moved loading html into nokogiri only when the page is valid