Javascript Remove Last Element From Array Python W3schools