Make insertion points work with dynamically created elements