Sgharms fix reveal close button

@bobandraa Please review and consider.  The crucial change was to add a `data-reveal` tag to the modal.  See e7949da.  I also used some other rails fanciness to make the div generation a bit cleaner.

cc: @jessicatung, @minedamnesia