deleted left over <script> scraps and cleaned up code formatting a bit