removing redundant script tags