Add travis script for phantomjs tests