added window.onload listener, hope this works for IE8
switch to using jQuery.each instead of forEach for the sake of IE8 users
merge