use _.each instead of forEach in route.js

see #1037.

Take a look guys.