removing unnecessary script tags