Generate table of contents from multiple CSS and JS files