Javascript Array Get Last Element Of Array Javascript Append To Body