Javascript Push Object To Array Javascript Splice To Remove