IEnumerator Is not a valid macro

I get this error: Player Script.js(75,1): BCE0038: ‘System.Collections.IEnumerator’ is not a valid macro.

if(Input.GetMouseButtonUp(1)){
    if(!Spell1OnCooldown){
    Character.animation.CrossFade("hpunch");
    var magic = Instantiate(spell1, GameObject.Find("Bip001 R Hand").transform.position, 
        Quaternion.identity);
        magic.rigidbody.AddForce(transform.forward * 2000);
        StartCoroutine(Cooldown1());
      }
    }
    IEnumerator Cooldown1(){
    Spell1OnCooldown=true;
    yield new WaitforSeconds(spell_1cd);
    Spell1OnCooldown=false;
    }

Count your brackets, and use proper indenting. You are in the middle of a function at line 10.