onBeforeRemove event added

Usage can be seen in the added documentation in the readme file. I ran Grunt to generate the minified version as well.