Wall Street gains on Amazon boost, despite worries over economy