Bootstrap TAB not highlighting as/when click

Ok, so making progress on the github site ( - JQuery/Bootstrap coding - but when I use the TAB processing for Bootstrap I am not seeing expected results. The tabs DO change the content in the TAB-CONTENT but the “active” tab stays as the original (ie it is not highlighting the tab which has been clicked (same happens if I switch to PILLS logic…

any thoughts/questions - the Bootstrap guide on gave me the basics and that works as I expect…

page for working example is:

and for my non-working page is:

I am sure I am missing something simple - all assistance gratefully received

sorted - my import of scripts for bootstrap was in the wrong place!!! told you, something simple