Josh Murphy scores one goal and sets up the other as Portsmouth beat QPR to continue their surge away from the relegation zone.