Javascript Remove Last Element From Array Python Definition W3schools