Remove Rotation From Camera LookAt Script

So, I tried out this Camera script from the Unity wiki (it’s the SmoothFollow script), and it works great! I’m using it with a Move on Mouse Click script and I have the camera looking down on the map. Whenever I make the player move, the camera rotates, which I really don’t want. I’m no good with javascript, so I was hoping that one of you can figure out how to remove the camera rotation. I tried it myself, but I just make things worse. I would like to have the camera always facing Z+ axis and have it always positioned Z- axis from the target. I copied the script below. (As you can see, I changed the script so that the target is defined by a tag, which can be changed by a static variable in another script. I’m not sure if it’s good coding practice to put it in the FixedUpdate function along with the rest of the script, but if you got a better idea, I would like to know.)

var target : Transform;
var distance = 3.0;
var height = 3.0;
var damping = 5.0;
var smoothRotation = true;
var rotationDamping = 10.0;

function FixedUpdate () {
	target = GameObject.FindGameObjectWithTag(game.cameraLookAt).transform;
    
	var wantedPosition = target.TransformPoint(0, height, -distance);
	transform.position = Vector3.Lerp (transform.position, wantedPosition, Time.deltaTime * damping);

	if (smoothRotation) {
		var wantedRotation = Quaternion.LookRotation(target.position - transform.position, target.up);
		transform.rotation = Quaternion.Slerp (transform.rotation, wantedRotation, Time.deltaTime * rotationDamping);
	}

	else transform.LookAt (target, target.up);
}

Help me out, please! I need to figure this out. I’m gonna be using this in two games.