JPMorgan beats estimates on trading boost, but loan losses loom