building javascript to toggle create/delete checkboxes