def return_back_or_ajax
        set_index_options
        respond_to do |format|
          if request.xhr?
            load_index if params[:reload].to_s.to_boolean(true)
            format.js
          else
            compatibly_redirect_back(@index_options) and return
          end
        end
      end
def return_back_or_ajax
        set_index_options
        respond_to do |format|
          if request.xhr?
            load_index if params[:reload].to_s.to_boolean(true)
            format.js
          else
            compatibly_redirect_back(@index_options) and return
          end
        end
      end
Returns JavaScript view for ajax request or redirects to back as default.
 @api protected
 @return [Responce] JavaScript view for ajax request or redirects to back as default