Newcastle beat West Ham 3-1 to end a run of four straight defeats and Alan Pardew is happy with the victory as it sets the team up nicely for the FA Cup break.