TSUIAM-35, added js-specs for legend definition