With David Moyes' job on the line, West Ham needed a win against Nottingham Forest to stand a chance of avoiding relegation.