Why do programmers databases with JavaScript? Lua is more embedded language than JavaScript. http://www.aerospike.com/ http://redis.io http://tarantool.org use LUA and it more powerful and easy to use as procedures.
Javascript is the only language native to the browser.
LuaJIT is a blessing and a curse. It's magnitudes faster than the standard interpreter but on the other hand it's version is lagging behind which means a lot of people won't benefit from the latest lua version