TODO ---- * use for (var i = 0; myArray[i++];) instead of i