Use npm package for phantomjs
Make test server work on Windows
Fix a typo