Python Delete Element From Array Javascript Append