Fixed JS bug causing featured image not to work

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