Fix indexes in convert_lua2js

Signed-off-by: katlogic <kat@lua.cz>