I think you meant to write `for (i in tabsMkt)` or `Object.keys(tabsMkt).forEach(function(tabName) { ... });`