js variable scope fix
Merge pull request #134 from LA1TV/master

js variable scope fix