text: Shelvey had a hand in both goals as Ayoze Perez curled in a low shot before Georginio Wijnaldum side-footed in from six yards to make it 2-0.
  Media playback is not supported on this device
  A stray backpass by Chancel Mbemba let Nikica Jelavic score for the Hammers.
  Newcastle squandered a number of chances but held on for a first win in six league games.
  Magpies striker Aleksandar Mitrovic produced a hard-working performance but was denied by Hammers keeper Adrian three times.
  Missed opportunities almost cost the home side, but keeper Rob Elliot kept out a 90th-minute Cheikhou Kouyate header with his knee.
  Relive all the action from St James' Park here.
  Follow reaction to Saturday's games here.
  Very good. The 23-year-old midfielder, signed for £12m from Swansea, showed the kind of passing, creativity and energy which helped him break into the England squad earlier this season.
  With just six minutes on the clock, Shelvey found Wijnaldum, who laid the ball off for Perez to open the scoring.
  The new signing then helped set up his side's second with a raking 60-yard ball to Daryl Janmaat, who crossed for Wijnaldum to score his ninth Magpies goal of the season.
  Victory moved Newcastle out of the relegation zone at the expense of Swansea, where Shelvey said he had been "hung out to dry".
  "I've enjoyed every minute I've been up here," said Shelvey. "It's nice to get out there and show what I am about.
  "It's not about me. It is about the team. We are out of the relegation zone and it's onwards and upwards from here.
  "I'm very shocked this team is in and around the relegation places. Normally it is hard coming into a new team and slotting straight in, but credit to the players and staff here."
  Steve McClaren was cruelly dubbed the 'wally with the brolly' when his England side were beaten by a Croatia team managed by Slaven Bilic in 2007.
  That defeat ended England's hopes of qualifying for Euro 2008, and McClaren duly lost his job.
  Bilic also came out on top when the Hammers won the reverse fixture earlier this season, but McClaren deservedly emerged victorious this time.
  The visitors were overwhelmed in the first half and, despite improving after the break, would have been beaten more convincingly had it not been for Adrian.
  Newcastle manager Steve McClaren: "They must have gone in at half-time thinking 'wow, get in' because it was only 2-0.
  "Then we gifted them a goal, but we didn't get nervous. We kept playing, we had chances that we didn't take but defended well and saw the game through.
  Media playback is not supported on this device
  "Jonjo is a very, very good player with real potential and it will suit him playing in this team, a team of footballers."
  West Ham boss Slaven Bilic: "They scored two goals very early and it gave them confidence, but from the first minute of the game they were getting to second balls and looked hungrier, sharper, quicker.
  "In the second half, we improved a lot. In the end we could have nicked a point when we had a great chance to equalise. But, overall, they deserved to beat us."
  Newcastle are away at Watford on 23 January, while West Ham play host to Manchester City on the same day.
target: Jonjo Shelvey made an impressive debut for Newcastle as he helped his side move out of the relegation zone with a win over West Ham.