Remove First Element From Array Javascript Append To List