work towards calling from lua into js objects