Renamed d.after to d.insertAfter, and d.before to d.insertBefore.