fixing duplicate script tags