Filter dirs.

If it's a top level file, take only the file name.
Adds isdir shortcut
Adds html2js tool