Rename files, fix <script> elements