Improved the prepareTooltip method to allow 2 strings ($title and $text)