Updated javascript for changing radio button selections