Python Add Array To Another Arraylist Vs Hashtable Javascript