Little code cleanup on the custom tooltip example