move inline script to file