Switched loop to for(...in...) instead of goog.array