Fixed JS flexible content not working

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