You could pretty much revert all this and use something like:
```javascript
$('#oa-submitpublication-welcome-help', $rootel).on('show.bs.collapse hide.bs.collapse', function() {
    $('i', $('.oa-submitpublication-btn-help', $rootel)).toggleClass('icon-chevron-down icon-chevron-up');
});
```