JavaScript is extremely important when using CSS and HTML. Pretty much anything you do in HTML that looks cool has some kind of JavaScript attached to it.

I am not sure what you mean by you think you can use "Flash script" (I assume you mean ActionScript). ActionScript can't do what JavaScript does for HTML (at least I don't think). Usually advanced flash pieces will use Javascript too.

I hope this helps and makes some sense.