St Johnstone clinched the Scottish Championship title with a 2-0 victory over Dunfermline Athletic. The win gives them the championship with two games remaining in the season.