Make use of ko.utils.arrayIndexOf and ko.utils.arrayForEach explicit rather
 than depend on the Array.prototype versions (for old browser compatibility)
Add old browser compatibility for event.target, for when jQuery is not included