Checking radio boxes are selected using Javascript