ndn data structures in javascript