fix var name in example to follow JS conventions