The e-commerce giant posted another surprise quarter — this time a good one.