Fix javascript iteration through array

for(var k in config) was assigning k to the properties of Array, not just the numeric indices

the second argument of add_buttons_group, k[1], should be config[k][1]
Merge pull request #7224 from jasongrout/fix-toolbarjs

Fix javascript iteration through array