web.js: fixed mime type for directory request