Move script section to end of document. Better pattern.