update tool tip javascript