Move script tags in index template

Any script tags added to index template get moved to the bottom of the outputted file.