Create Empty Object Array Iterator Javascript Foreach