Dan James and Neco Williams scored for Wales as they beat 10-man Norway 2-1 to earn their first points of the campaign.