Add Objects To Array Javascript Mdn Splice