 
 # Bind the event handlers required for importing templates.
 loadTemplateImportEvents = ->
+  data      = null
   templates = $ '#templates'
   # Restore the previous view in the import process.
   $('.import_back_btn').live 'click', ->

  # Finalize the import process.
  $('.import_final_btn').live 'click', ->
    $this = $ this
    list = $this.parents('.import_con_stage2').find '.import_con_list'
    list.find('option:selected').each ->
      opt = $ this
      existingOpt = templates.find "option[value='#{opt.val()}']"
      opt.removeAttr 'selected'
      if existingOpt.length is 0

    $('#googlDeauthorize_btn').click ->
      store.remove key for key in googl.oauthKeys
      $(this).hide()
      analytics.track 'Shorteners', 'Deauthorized', googl.title
    # Only show the "Revoke Access" button if Template has previously been
    # authorized by the [Google URL Shortener](http://goo.gl).
    for key in googl.oauthKeys when store.exists key
      $('#googlDeauthorize_btn').show()
      break
    # Bind event to template section items which will toggle the visibility of
    # its contents.
    $('.template-section').live 'click', ->
