code: def filebrowser(request):
      
      try:
          fb_url = reverse('fb_browse')
      except:
          fb_url = reverse('filebrowser:fb_browse')
      return HttpResponse(jsmin(render_to_string('tinymce/filebrowser.js',
                                                 context={'fb_url': fb_url},
                                                 request=request)),
                          content_type='application/javascript; charset=utf-8')
docs: JavaScript callback function for `django-filebrowser`_
  
      :param request: Django http request
      :type request: django.http.request.HttpRequest
      :return: Django http response with filebrowser JavaScript code for for TinyMCE 4
      :rtype: django.http.HttpResponse
  
      .. _django-filebrowser: https://github.com/sehmaschine/django-filebrowser