Clean up Lua example a bit by using the 'local' keyword.