Really fix multiple new parts expanding bug.

Has to be done with JS because the added template is only rendered once.