some progress on javascript end of libtorrent RPC