hide non-default tab panes on loading
remove unused css
use CDNs if available, else fall back on local scripts
add optional parentheses