add jsdoc and fix add data to referencesMany.add

Signed-off-by: Clark Wang <clark.wangs@gmail.com>