Fixed preview JS bug

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