jQuery doesn't work on new hosting
Your issue is in this line

img = '/sites/all/themes/ave/img/logo2.png';


It should be something like this:

img = location.protocol + "//" + location.host + '/sites/all/themes/ave/img/logo2.png';


and if that does not work just inspect the src param of the image and adjust accordingly.

And perhaps replace the whole script with this:

(function ($, Drupal, window, document, undefined) {
    Drupal.behaviors.MYMODULE = {
        attach: function(context, settings) {
            var img = location.protocol + "//" + location.host + '/sites/all/themes/ave/img/logo2.png';
            $('.logo-img a img').attr("src", img);

        }
    };

})(jQuery, Drupal, this, this.document);