update ag analytics js document