How to get a 3D TextMesh to face character?

I have an rpg with monsters with their names above their heads on a 3D TextMesh. However, some of them have their text backwards. Even ones that have their text forward, when you walk behind it, it's backwards, and when you walk to the side the text is gone. How can I get the rotation of it to always face the character?

haven't tested this but

var Camera : Transform ;

function Update ()
    var rotate = Quaternion.LookRotation(Camera.position - transform.position);

transform.rotation = Quaternion.Slerp(transform.rotation, rotate);

could work, the 'Camera' variable is ofcouse the main camera in the game