http.js: use watch_directories() to load JavaScript files for testing