consolidated <script> to make my ocd feel better