Gold retreats from 2-week high as dollar firms, JPMorgan eyes Q4 rebound