Fixed JS issues introduced by commit 91bafca (radio buttons)