Fixed JS bug preventing tab fields from being hidden by conditional logic!

Signed-off-by: Elliot Condon <e@elliotcondon.com>