Online giant promises to pass on its share of profit to NGOs helping refugees from the hit song by anti-Islam group.