Javascript Add All Items In Array To String Python Functions