Lua and Javascript implementations