Moved ratingPopupBuilder out of AJAX success