Inject emit function into Lua global namespace
Organized files