Use util.inherits instead of .prototype.__proto__

If I use stringify on internet explorer via browserify,
this.mapVisit is inaccessible via __proto__.

util.inherits fixes it, and it doesn't hurt to use
util.inherits on node.js.