updated legend copy, removed deprecated js