updated with phantomJS test scripts