JS - Child duplicator