Strip leading whitespace from JavaScript code blocks extracted from HTML

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>