chore(index): move inline script to file