Fixed a rookie mistake with ordering of <script> tags.