cleanup traversing.js module