main.js: Generate pathbar with pathbar() function.
More work on file selector dialog.