Reworking how css stylesheets are injected into the page