move script tags to head of index.html