Removed unnecessary use of `window` object
Updated CSS injection to prevent flash of unstyled content