Given we already loadConfig in the html file, could we just pass this as an argument somehow?