SocialProfile: fixed JS on Special:GiveGift.

Change-Id: I9f3bfcc6fb39859608f6304db196233ecde2fd57