Update OnLegendStyle.js

log check box
Merge pull request #4 from ghakomaki/patch-4

Check box object