sent scripts back to head in index.html