fixed some jQuery issues with dynamic checkboxes