John Tavares scored in his return from injury to help the Toronto Maple Leafs beat the Montreal Canadiens 4-1 in pre-season action.