Update bootstrap-tabcollapse.js

Refactored to a simpler, cleaner fix.