Improving placement of <script>