St Mirren scored twice in the final 11 minutes to defeat Kilmarnock 2-0 and climb two places in the table to go level on points with their opponents.