   properties = $(collection).find('citeProperty')
   add_property_to_form(property,form) for property in properties
 
-  form.append $('<br>')
-  form.append $('<a>').attr('href',google_oauth_url).append('OAuth Test')
-
   # test table access
   if get_cookie 'access_token'
     $.ajax "https://www.googleapis.com/fusiontables/v1/tables/#{$(collection).attr('class')}?access_token=#{get_cookie 'access_token'}",

      crossDomain: true
      error: (jqXHR, textStatus, errorThrown) ->
        console.log "AJAX Error: #{textStatus}"
      success: (data) ->
        console.log data


        access_token_cookie += "path=#{window.location.pathname.substring(0,window.location.pathname.lastIndexOf('/')+1)}"
        console.log 'Wrote access token cookie: ' + access_token_cookie
        document.cookie = access_token_cookie
        $('#oauth_access_warning').remove()

$(document).ready ->
  set_access_token_cookie parse_query_string(location.hash.substring(1))
