anchor.diff:                type: "POST",
                 data: data,
                 success:function(data, textStatus, jqXHR) {
  -                package_url = data.package.url
  -                checkPackage();
  +                checkPackage(data.package.id);
                 },
                 error: function(req, textStatus, errorThrown){
                     var infobox = $('#ajax-error');
  
positive.code: 
  
  <% content_for :extra_javascript do %>
  
  
  <script type="text/javascript">
  // resumable
  
negative.code:           );
  		}
  
  		function checkPackage(id) {
        Pusher.host = 'ws-eu.pusher.com';
        Pusher.sockjs_host = 'sockjs-eu.pusher.com';
        var pusher = new Pusher('<%= Pusher.key %>');
        var channel = pusher.subscribe('package_' + id);
        channel.bind('complete', function(data) {
          document.location.href = data.url;
        });
  		}
  
  	});
  