Bugfix: click events need to be defined in document.ready.
HTML formatting.