Resolve script tag mistakes