Improved JS speed for conditional logic

https://github.com/AdvancedCustomFields/acf5-beta/issues/207#issuecomment-44844674
Signed-off-by: Elliot Condon <e@elliotcondon.com>