JPMorgan Posts Profit in Quarter