Adds support for old IE where Array.forEach and String.trim are undefined.