move inline js to coffeescript and  make addTooltipSupport global