Remove Last Element From Array Javascript