recursive tree walk on directory
convert js to coffee