Improving placement of <script> tags