Im having problems with my script... cant seem to see what's wrong, its coming up with an error saying "unexpected token:." Please help!

Here is the script:

var levelToLoad : String;
var soundhover : AudioClip;
var beep : AudioClip;
var QuitButton : boolean = false;

function OnMouseEnter(){
audio.PlayOneShot(soundhover);
}
function OnMouseUp(){
audio.PlayOneShot(beep);
yield new WaitForSeconds(0.35);
if(QuitButton){
Application.Quit();
}
else{
Application.LoadLevel(levelToLoad);
}

script RequireComponent(AudioSource){

{

There are several, probably related problems here. First, your declaration for ‘RequireComponent’ is not in the right format. Second, line 21 is an open brace that does not match any closing brace, and third, you don’t have a closing brace for your OnMouseUp() function. It is important when writing code to pick a indentation style that allows you to see how braces match up, and to use it. In addition, in Monodevelop, if you put your cursor on one brace, it will highlight the matching brace, so it is fairly easy to walk through code to see how the braces line up. Here is your code with the fixes and the indentations added so everything is aligned:

var levelToLoad : String;
var soundhover : AudioClip;
var beep : AudioClip;
var QuitButton : boolean = false;

function OnMouseEnter(){
	audio.PlayOneShot(soundhover);
}

function OnMouseUp(){
	audio.PlayOneShot(beep);
	yield new WaitForSeconds(0.35);
	if(QuitButton){
		Application.Quit();
	}
	else{
		Application.LoadLevel(levelToLoad);
	}
}

@script RequireComponent(AudioSource)