insertBefore and insertAfter delegate to element