Removed the document.write and deal with FOUC with only CSS