The only way to use Javascript in a windows application is to contain a WebBrowser control, and set the DocumentText property to the HTML, including the javascript in that.
string s = File.ReadAllText(@"F:\Temp\MyWebPage.html");
myWebBrowser.DocumentText = s;