Moved all script tags to top of layout body