Fixes a javascript error; fixed #20.
Changed layout a fair bit; shifting emphasis toward messages/dialog.