Automatically maintain <script> sections