Fix ordering of code in HTML-lite pages + prettify
Merge pull request #440 from remy/fix/preview-439

Fix ordering of code in HTML-lite pages