Issue #1352: Add an flag to extract JavaScript from HTML.

Props to @BenoitZugmeyer for the original patch.