 # Fetch a document from our couchdb instance
 fetch_data = (url, callback) ->
     get url, (xhr) ->
-        if xhr.status is 200 or xhr.status is 304  
+        if xhr.status is 200 or xhr.status is 304
             data = eval '(' + xhr.responseText + ')'
             callback data
         else

    if style.styleSheet
        # IE
        style.styleSheet.cssText = render("widget.css")
    else 
        # Other browsers
        style.innerHTML = render("widget.css")


        xhr.withCredentials = true
        xhr.setRequestHeader "Content-type", "application/x-www-form-urlencoded"

        matches = document.cookie.match /csrftoken=([^;]+)/i
        xhr.setRequestHeader "X-CSRFToken", decodeURIComponent(matches[1]) if matches?[1]?

        postdata = (k+"="+encodeURIComponent(v) for k,v of params).join '&'
