js back to foter, change fun.ready
var searchOpt = {
 init : fun ...
}
(function($) {
 searchOpt.init();
})(jQuery);

$( document ).ajaxComplete(function() {
 searchOpt.init();
});