Shares in Internet-based retailer Amazon went through the roof this week as the company nearly tripled its second quarter profits.