Fix JS error in example