Numpy Find Index Of Array Value Javascript