Refactor loadAndInlineStyles()
Clean up
Refactor inlineReferences()