Problem Getting Numpy Array Indexing In Javascript