Bootstrap js refuses to load

Expanding @RRikesh comment, you might have enqueued/loaded the bootstap.js with same handle theme-js. So only one script gets enqueued.

Try to use different handle for example nav-sidebar. See the following code. Also it’s recommended to use prefix, here I used wpse. Also use get_template_directory_uri instead of get_stylesheet_directory_uri() if it’s not a child theme.

function wpse_sidebar () {
   wp_enqueue_script('nav-sidebar', get_template_directory_uri() . '/js/nav-sidebar.js',array( 'jquery' ),'1.0.0',true );
}
add_action('wp_enqueue_scripts', 'wpse_sidebar');