Use poltergeist and phantomjs for javascript tests