added javascript to limit checkboxes to three