Add PhantomJS support (via poltergeist) and add one test.