Javascript [Checkboxes styling]

Hello I am using screwdefaultbuttons code for styling checkboxes.
There’s an option SelectAll, which unfortunately does not work in my case.
For one form it works , but if I include next It’s screw up.

I’ve got a problem with my code. Could you help me with it?
example here:…

I cant figure out how to solve it, thats why I am asking.
Any help appreciated.