Format HTML as per jQuery style guide

Fixes gh-1101