Refactor config files to run mocha-phantomjs in travis