Python Change Array To String Javascript Methods