format javascript: move default to the right place
make groupRequired work for checkboxes
Merge pull request #766 from mingliangfeng/master

make groupRequired work for checkboxes