Adding support for class-based close actions
a bit more specificity
Fixing some jshint errors
Merge pull request #11 from borkweb/add-close-message-functionality

Adding support for class-based close actions