Doing the right thing long-term isn't always easy for companies. Just ask Alibaba.com, China's ecommerce giant. Last quarter, the company…