Fixed JS bug causing page type location rule to not work

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