fixing JS issue with show and hide functionality of types page

Signed-off-by: Daniel Newns <dan@higgsdesign.com>