Find Last Index Array Javascript Example