Bugfix. Used prototype.forEach and that isn't available in a lot of browsers