Fixed Checkbox functions

I seriously can't code JS.