added extendedForEach function in express-dynamic-router.js