Headless browser testing client code against node.js applications