Some users customize javascript file from the parent theme to meet their requirements. but the modification overwrites whenever they update the theme. In such a situation you can load main js from the child theme.
Try below code in your child theme functions.php to dequeue script from parent theme and load main js from the child theme.
function custom_enq_childminjs() { wp_dequeue_script( 'dt-main', get_template_directory_uri() . '/js/main.js', array( 'jquery' ), false, true ); wp_register_script('dt-main', get_stylesheet_directory_uri() . '/js/main.js', array('jquery'),false, true); wp_enqueue_script('dt-main'); } add_action( 'wp_enqueue_scripts', 'custom_enq_childminjs' );