check if atleast one checkbox is checked in a checkbox group using javascript