Adeed !$(this).attr('data-toggle') to conditions for anchor scroll in order to allow collapse elements to work correctly
Added broken apart bottom partial to allow for adding scripts directly in the page.  These scripts will be loaded after the built in scripts so they will have access to jQuery.  The original partial is still included to keep simplicity if it is not desired to add a script in the page.