app.lua: Revert 'local' declarations that didn't affect performance.