West Ham moved three places up to fourth on 52 points from 30 games, one more than fifth-placed Chelsea.