Excel Empty Array Javascript Iteration