Add option to bind a function to a modal button

Also fix main->text change in DestinyModal.js, and add modal in modal to
demo page.