Why won't it be compatible? Any code written in Lua 5.1 will run on LuaJIT.
But not the other way around.
But not the other way around.