outputLayer = {
for (var i=0; i < outputLayer.length; i++)
for(var i in outputLayer) { if (!outputLayer.hasOwnProperty(i)) continue ... }