Remove dependency on jQuery; Add forEach on Array.prototype if missing