[NF] Pass object to javascript (#31).