Get Index In Array Filter Javascript Syntax For Opening