Numpy Structured Array Indexing Javascript Map