Numpy Array Find Index Of Min Value Input Python To Javascript