Add missing 'var' declaration

added missing `var` in example.js.
Merge pull request #2 from azu/patch-1

Add missing 'var' declaration