Added missing local statement.
Merge pull request #32 from pkazmier/master

Fixed Lua newbie bugs with forgetting `local` keyword on some local variables.