Use PhantomJS and Poltergeist for tests

Redundant curly braces around a hash parameter.