Move client side CSS to JS to prevent CSS issues when loading external resources