added javascript to capture radio buttons-in progress