switched to phantomjs for unit tests