add missing data_javascript

Note that javascript is still excluded from html output by default,
but this makes it possible to include javascript output in custom templates.

candidate for backport to 1.1