Test/phantom

adds phantomjs testing and support for travis ci