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

Props to @BenoitZugmeyer for the original patch.

Conflicts:
	src/cli.js