Get Index In Array Filter Javascript Array Length