Fix variable name in JavaScript example
Merge pull request #1 from ivaldi/master

Fix variable name in JavaScript example