added headless testing with phantomjs