Upgrade to the current ndn.js. Change getValue() for a Name.Component to getValue().buf().
Instead of deprecated direct use of object fields, use get methods: getName, getContent. Changed deprecated to_uri to toUri.