結果 : remove item based on index javascript