added js support for tooltips