If you place your Javascript in a unique text control, you can then control the visibility properties on that text control for each kind of output.
Select the text control and have a look at Properties --> Visibility --> For Specific Outputs (it is a radio button)
Good Luck.
|