         set_cookie('access_token',params['access_token'],params['expires_in'])
         $('#collection_select').change()
 
+# construct a clippy element to replace the given placeholder id
 clippy = (id) ->
   console.log "Clippy: #{id}"
   flashvars =

scroll_to_bottom = ->
  $('html, body').animate({scrollTop: $(document).height()-$(window).height()},600,'linear')

save_collection_form = ->
  collection = $('#collection_select').val()
  localStorage[collection] = true

    window.location.href + new_hash
  history.pushState(null,$(selected).text(),new_url)

# main collection editor entry point
$(document).ready ->
  # merge config parameters
  cite_collection_editor_config = $.extend({}, default_cite_collection_editor_config, window.cite_collection_editor_config)
