Lua, as far as I know, will not work on the web (HTML5.) Closed-source is not an option.
Ok I am able to find a solution for this. According to me it will suite us very well.
We can use Moai for it. It uses lua for writing games and we can use our own c++ code in it.If we need.
We can use Edgelib it's free but not open source.
AFAIK they are the best solution that we have.