Update OnLegendStyle.js

changes for color picker