Javascript Delete Last Element Of Array Javascript Append To Body