Adjust insertAfter to new DOM setup