Redesign the require() implementation to support chained requires via IIFEs