Js Comit on my array