Get Index Of Json Array Javascript Length Method In Javascript