Updated checking of checkboxes to use jQuery prop instead of attr