Kilmarnock have extended their unbeaten run to eight matches after beating St Johnstone 2-0 in the Scottish Premiership.