Numpy Array Find Index Of Min Value Javascript