switch to phantomjs for running browser-based tests and configure travis-ci