THS football rallies to beat St. James