prepare for js<-->lua glue prototype 1