Fix export

I tried to use require('./ancestry.js'), but I was getting the following error:
.../ancestry.js:46
  module.exports = ancestry;
                   ^
ReferenceError: ancestry is not defined