Python Delete Element From Array Javascript Methods