Create GUIText from Javascript

I’m having a hard time finding info on what I thought would be a simple task. Is there a way to create a GUIText object from a script (Javascript)? I don’t want to have to create one manually. For what I’m doing thats way to much work as there will be alot of text.

Information on using GUIText in script can be found in the docs:

Clicking on the links there will explain how to use each one.

You should just need to add the GUIText Component to a gameobject like so:

var go = Instatiate(new GameObject(), new Vector3(0.5, 0.5, 0.5), Quaternion.identity); 
go.guiText.text = "Hello World";

If you have never used a GUIText before make sure you take a good look at what the pixel correct does. Ive had a lot of headaches from that alone. Also havent tested the code, but you should get the idea.

PAEvenson solution helped me.
Here it is cleaned up of errors and tested in C#:

public void showMessage()
	GameObject go = Instantiate(new GameObject(), new Vector3(0.5f, 0.5f, 0.5f), Quaternion.identity) as GameObject; 
	go.guiText.text = "Hello World";