Calling JavaScript file with Custom Plugin

WP loads jQuery in no conflict mode so shortcut $ is not available for jQuery to use .You should not use the $ variable for jQuery within WordPress.

jQuery(function ($) {
   //code here
})

or

(function($){

    //code here

})(jQuery);

There are so many Q&A which refers to the same conflict issue.Check this and this.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)