traversing.js cleanups