typo correction.

also 'function(...){console.log(...)}' is the same as 'console.log' (but I think you're being explicit to be clear)
Merge pull request #382 from dtudury/patch-1

Fix a mismatched variable name in an example.