Make test.js output docs directory