modified DOM injection code