Fix variable name in JavaScript example