old_contents: Meteor.startup(function () {
    Template[getTemplate('postShare')].helpers({
      sourceLink: function(){
        return !!this.url ? this.url : getSiteUrl() + "posts/"+this._id;
      },
      viaTwitter: function () {
        return !!getSetting('twitterAccount') ? 'via='+getSetting('twitterAccount') : '';
      }
    });
  
    Template[getTemplate('postShare')].events({
      'click .share-link': function(e){
        var $this = $(e.target).parents('.post-share').find('.share-link');
        var $share = $this.parents('.post-share').find('.share-options');
        e.preventDefault();
        $('.share-link').not($this).removeClass("active");
        $(".share-options").not($share).addClass("hidden");
        $this.toggleClass("active");
        $share.toggleClass("hidden");
      }
    });
  });
new_contents: Meteor.startup(function () {
    Template[getTemplate('postShare')].helpers({
      sourceLink: function(){
        return !!this.url ? this.url : "http://make-a-difference.rahimafrooz.com/" + "posts/"+this._id;
      },
      viaTwitter: function () {
        return !!getSetting('twitterAccount') ? 'via='+getSetting('twitterAccount') : '';
      }
    });
  
    Template[getTemplate('postShare')].events({
      'click .share-link': function(e){
        var $this = $(e.target).parents('.post-share').find('.share-link');
        var $share = $this.parents('.post-share').find('.share-options');
        e.preventDefault();
        $('.share-link').not($this).removeClass("active");
        $(".share-options").not($share).addClass("hidden");
        $this.toggleClass("active");
        $share.toggleClass("hidden");
      }
    });
  });
  
subject: Update post_share.js