Update OnLegendStyle.js

log button addition