trim HTML and JS in examples (proper indentation)