removing redundent script tags