Refactored 'Object.prototype.forEach' as 'Object.prototype.foreach' to avoid issues with Chrome extensions;