Updated recipe for inserting elements inside another element