The typical way I have approached this in the past is to have the pages themselves add the script in their code behind.
If you need it to be in the head or within the master page itself, then something like this usually works
public function RegisterScriptFile(string filename)
Then from your home.aspx
protected void Page_Load(object sender, EventArgs e)