Improved HTML rendering (squashed some bugs, and added centering)