Fix a link to the top page.
Use for-in to remove duplicated code.
Use params in routing.
Add validator for params.
Use express-params.
Use regular expression in routing.
Use GET params.
Add error handling.
Use the params of from and dir.
Use buttons instead of links.