GUITexture Click

Im making a simple macro bar… Im trying to access my function from my other Javascript file but cant seem to, heres my code.
var normalTex : Texture2D;
var hoverTex : Texture2D;
var script : PlayerRelativeControl;

function OnMouseEnter(){
guiTexture.texture = hoverTex;

}

function OnMouseExit() {
guiTexture.texture = normalTex;
}

function OnMouseDown(){
script = GetComponent("PlayerRelativeControl");
script.StopCoroutine("Slap");
script.StartCoroutine("Slap");

}

I think that this is will answer your question : answer