Update bootstrap-tabcollapse.js
Update bootstrap-tabcollapse.js

Refactored to a simpler, cleaner fix.
Branodolny/bootstrap-tabcollapse,codebakery-ch/bootstrap-tabcollapse,mesujan28/bootstrap-tabcollapse,mattez/bootstrap-tabcollapse,flatlogic/bootstrap-tabcollapse