Using fragments that contain script