move widget script tags to the end of the page