tooltip code for arcgis js library