JavaScript example had wrong variable name.