Module and resource loading system for the browser