multiple dependencies IE fix

Array.forEach is not supported in IE 6-8. `while(i--)` is the fastest way to go through a loop.