globs tocify function and JS files together