Moved <script> tags in index template.