Add phantomjs to run tests and travis ci config