ArcGIS Javascript Custom Legend