Move loading of css and js to the end of the document.