remove extraneous empty <script> after <body> has been closed