New single page jsdom testing - first step for browser testing. Doesn't work with full html pages so complex example had to change