you use push to put an item at the end of an array in javascript, not append