Swapping definitions for insertAfter and insertBefore.