make server port a parameter
have a phantomjs test