A first-half Bruno Guimaraes goal has seen off West Ham and lifted Newcastle up three spots to sixth on the Premier League table.