Knocking some sense into

the client side script
Hiding and showing

the elements is working as expected.