referencestrip.js event handler cleanup