Js Delete Item From Array Javascript Function Syntax