Call a function in JS file from drupal
Try to write JS in drupal way like this:

(function($) {

    Drupal.behaviors.xyzModule = {
        attach: function(context, settings) {


//            $('.test', context).click(function() {
//                $(this).next('ul').toggle('show');
//            });

//myid_js_start();
            function myid_js_start() {
                alert("hello world");
                //console.log(' Hello');
            }

        }
    };

})(jQuery);


For More info visit here