Fixed directory for code
Pasted code from traversing.js