How To Convert Array To List In Js