Unobtrusive-ified the JavaScript

Moved click handler into JavaScript document. Changed some of the HTML
classes and IDs in an attempt to make the markup a little more
semantic.