add Kenny's changes in hazzle.js and traversing.js

format the code and find couple of issues