(function(){ var items=[{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_320003zm?hei=225&wid=225","price":"$8.97 per pair","name":"Raccoon Socks","link":"http://www.shopnwf.org/Apparel/Socks-and-Slippers/2780-320003-Raccoon-Socks.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"320003"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_450012zm?hei=225&wid=225","price":"$16.99 each","name":"Raccoon Mug","link":"http://www.shopnwf.org/For-the-Home/Mugs-and-Tumblers/2780-450012-Raccoon-Mug.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"450012"},{"image":"//media.theoccasionsgroup.com/is/image/TOP/2780_500010zm?hei=225&wid=225","price":"$12.99 each","name":"Raccoon Buri Ornament","link":"http://www.shopnwf.org/For-the-Home/Seasonal-Decorations/2780-500010-Raccoon-Buri-Ornament.pro?utm_source=nwfdotorg&utm_medium=relatedItems&utm_content=SKU&utm_campaign=Related%20Items","id":"500010"}]; var largeViewDIV =document.createElement("DIV"); largeViewDIV.className='container related-item item'; largeViewDIV.innerHTML ='

Shop the National Wildlife Federation’s Related Items

'; for (var x = 0, l = items.length; x < l; x++) { var relatedHtml='

'+items[x].id+'

'+items[x].name+'

'+items[x].price+'

'; var addItem=document.createElement("DIV"); addItem.className="col-sm-4"; addItem.innerHTML=relatedHtml; largeViewDIV.appendChild(addItem); } document.querySelector('div.TOGRelatedItems').appendChild(largeViewDIV); })();