jsdom no longer fails when raw html resembles a directory

Fix for issue #2, this commit adds a test and fix for the issue caused
when jsdom encounters raw html that resembles a directory name. More
importantly, it prevents remote HTML from causing jsdom trying to access
a local file.