add javascript to tooltips