Behind the scenes of "Ted"