Modified plugin to reference itself with this in event handlers
Modified message in buildURL to get passed through encodeURI