fix adding script tag to index