           if callback?
             callback(data)
     when 'SELECT'
-      $.ajax "#{FUSION_TABLES_URI}/query?sql=#{query}&access_token=#{get_cookie 'access_token'}",
+      $.ajax "#{FUSION_TABLES_URI}/query?sql=#{query}&key=#{cts_cite_collection_driver_config['google_api_key']}",
         type: 'GET'
         cache: false
         dataType: 'json'


build_cts_cite_driver = ->
  console.log('build')
  if get_cookie 'access_token'
    set_cookie_expiration_callback()
    get_valid_reff(cts_cite_collection_driver_config['cts_urn'], => get_cite_collection(build_cts_ui))
  else
    window.location = google_oauth_url()

# main driver entry point
$(document).ready ->
  console.log('ready')
  cts_cite_collection_driver_config = $.extend({}, default_cts_cite_collection_driver_config, window.cts_cite_collection_driver_config)
  console.log(cts_cite_collection_driver_config['cite_collection_editor_url'])
  google_oauth_parameters_for_fusion_tables['client_id'] = cts_cite_collection_driver_config['google_client_id']
  google_oauth_parameters_for_fusion_tables['scope'] = cts_cite_collection_driver_config['google_scope']

  set_access_token_cookie(filter_url_params(parse_query_string()),build_cts_cite_driver)

cite_collection = {}

default_cts_cite_collection_driver_config =
  google_api_key: 'AIzaSyACO-ZANrYxHFG44v8kqsfGb6taylh2aDk'
  google_client_id: '429515988667-jkk0s2375vu04vasnvpotbimddag4ih8.apps.googleusercontent.com'
  google_scope: 'https://www.googleapis.com/auth/fusiontables https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email'
  cts_endpoint: '1_DFxPLkDrZt2JTgFo04nI6zQ9AsnnqMNRlUBb2Sq'
