Add travis

Add travis.yml and use phantomjs for testing