Reimplement iterate using unfold
Remove unneeded jshint directive