Create a function that automatically loads all html files in a given dir