Numpy Structured Array Indexing Javascript Foreach