Add support for phantomjs and travis CI