West Ham took defeat from the jaws of victory this evening as a chance to go third was wasted at home to Crystal Palace.