There is a way out, use complete instead of success or done


    posts = $.ajax({
        type: 'GET',
        url: ajaxurl,
        async: false,
        dataType: 'json',
        data: { action : 'getHotelsList' },
        complete: function(results) {

and try to remove `async:false` if problem persists