Update view.js

enable list subdirectories