Robbie Neilson was delighted to see his Hearts side hold on to beat St Johnstone and move up to third in the Scottish Premiership.