Added <script> tag stripping + misc fixes